package com.gitee.wsl.scheduler.job.dsl


import com.gitee.wsl.scheduler.job.bean.Job
import com.gitee.wsl.scheduler.job.bean.JobProps
import com.gitee.wsl.scheduler.job.bean.ScheduledJob
import com.gitee.wsl.scheduler.job.context.JobContext
import com.gitee.wsl.scheduler.job.repository.JobRepository
import kotlin.coroutines.CoroutineContext


@JobDslMarker
class JobContextWithProps<J : Job> internal constructor(
    coroutineContext: CoroutineContext,
    val props: JobProps<J>,
    scheduledJob: ScheduledJob,
    jobRepository: JobRepository
) : JobContext<J>(coroutineContext, scheduledJob, jobRepository)